Skip to content

Avoid recursive npm publish lifecycle - #10

Merged
davej merged 1 commit into
masterfrom
codex/fix-recursive-publish-script
Aug 4, 2026
Merged

Avoid recursive npm publish lifecycle#10
davej merged 1 commit into
masterfrom
codex/fix-recursive-publish-script

Conversation

@davej

@davej davej commented Aug 4, 2026

Copy link
Copy Markdown
Member

Rename the publish script to release. npm treats a script named publish as part of the publish lifecycle, so npm publish invoked that script and recursively started a second publish. The release alias preserves the manual command without registering a lifecycle hook. Validation: package.json has no scripts.publish entry, npm pack --dry-run succeeds, and git diff --check passes.

@semanticdiff-com

semanticdiff-com Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  package.json  0% smaller

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0189065fbe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json
"release:minor": "npm version minor && npm publish",
"release:major": "npm version major && npm publish",
"publish": "npm publish"
"release": "npm publish"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the documented publish command

Renaming this script leaves the release instructions in README.md:5 pointing to npm run publish. Following that documented workflow now exits with Missing script: "publish", so maintainers cannot complete the prescribed prebuild release process. Update the documentation to use npm run release as part of this rename.

Useful? React with 👍 / 👎.

@davej
davej merged commit ef6b4b7 into master Aug 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant